-- GENERATED SPELL FOR [Rageclaw Primalist] --


function spell0_29438(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(50420,pUnit)
pUnit:RegisterEvent('Sorts_29438', 641, 1)
end

function spell1_29438(pUnit, Event) --@Frost Shock,n/a--
pUnit:FullCastSpellOnTarget(12548,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29438', 8286, 1)
end

function spell2_29438(pUnit, Event) --@Healing Wave,Heal--
pUnit:FullCastSpellOnTarget(11986,pUnit)
pUnit:RegisterEvent('Sorts_29438', 3000, 1)
end

function spell3_29438(pUnit, Event) --@Lightning Shield,n/a--
pUnit:FullCastSpellOnTarget(12550,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29438', 0, 1)
end

function Sorts_29438(pUnit, Event)
local choix_sorts_29438 = math.random(0, 3)
if choix_sorts_29438 == 0 then
pUnit:RegisterEvent('spell0_29438', 1, 1)
end
if choix_sorts_29438 == 1 then
pUnit:RegisterEvent('spell1_29438', 1, 1)
end
if choix_sorts_29438 == 2 then
pUnit:RegisterEvent('spell2_29438', 1, 1)
end
if choix_sorts_29438 == 3 then
pUnit:RegisterEvent('spell3_29438', 1, 1)
end
end

function mob29438_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29438', math.random(1500, 3000), 1)
end

function mob29438_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29438_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29438_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29438, 1, 'mob29438_Action')
RegisterUnitEvent(29438, 2, 'mob29438_Leave')
RegisterUnitEvent(29438, 3, 'mob29438_Kill')
RegisterUnitEvent(29438, 4, 'mob29438_Die')
